CC          = /usr/bin/gcc
CFLAGS      = -pthread
COREOBJS    = logstore.o store.o 
TARGET      = logstore_server storetest

all: $(TARGET) 

logstore_server: $(COREOBJS)
	${CC} $(CFLAGS) $^ -o $@ 

storetest: storetest.o store.o
	${CC} $(CFLAGS) $^ -o $@ 

%.o: %.c
	${CC} -c $(CFLAGS) $< -o $@

.PHONY: clean

clean: 
	$(RM) $(TARGET) $(COREOBJS) *.o

